<a href="<?php echo $this->url(array('action' => 'index'), 'example_action'); ?>"><?php echo BaseZF::escape(_('Back to example index')); ?></a>

<form method="post" action="<?php echo $this->url();?>">
<fieldset>
<legend><?php echo BaseZF::escape(_('PHP Http Client')); ?></legend>
    <table>
        <tr>
            <th<label for="url"><?php echo BaseZF::escape(_('Url:')); ?></label></th>
            <td><?php echo $this->formText('url', $this->params['url']); ?></td>
            <td>
                <?php echo $this->formSubmit('submit', _('Open')); ?>
                <?php echo $this->formReset('cancel', _('Cancel')); ?>
            </td>
        </tr>
    </table>
</fieldset>
</form>
<br />
<fieldset>
<?php
    if (!empty($this->response_body)) {
        echo BaseZF::escape($this->response_body);
    } else if (!is_null($this->error)) {
        echo '<em>' . BaseZF::escape(_($this->error)) . '</em>';
    } else {
        echo  BaseZF::escape(_('Please enter a URL.'));
    }
?>
</fieldset>

<ul>
    <li><a onclick="window.open(this.href); return false;" href="/doc/html/httpclient_8php-source.html"><?php echo BaseZF::escape(_('See view source')); ?></a></li>
    <li><a onclick="window.open(this.href); return false;" href="/doc/html/classExampleController.html#8137e22b6a93cc07dd29ed8dede8f0c8"><?php echo BaseZF::escape(_('See action source')); ?></a></li>
</ul>
